package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.po.MarketGoods;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class WXGoodsListVo {
    /**
     * total : 42
     * pages : 5
     * limit : 10
     * page : 1
     * list : [{"brief":"1111111111","picUrl":"http://182.92.235.201:8083/wx/storage/fetch/ds71de09pvvj5dsrj1o0.png","name":"小飞机","counterPrice":99,"id":1181027,"isNew":true,"retailPrice":11,"isHot":false},{"brief":"哈哈哈哈哈","picUrl":"http://182.92.235.201:8083/wx/storage/fetch/t2skpada8rmvwe2s3c8o.jpg","name":"哈哈哈","counterPrice":111,"id":1181026,"isNew":true,"retailPrice":1,"isHot":false},{"brief":"哇哈哈哈哈","picUrl":"http://182.92.235.201:8083/wx/storage/fetch/wv7ph96rg3wvdvbshqfe.png","name":"大帅哥一枚","counterPrice":112,"id":1181008,"isNew":true,"retailPrice":80,"isHot":true},{"brief":"水洗亚麻，透气亲肤","picUrl":"http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png","name":"日式纯色水洗亚麻抱枕","counterPrice":99,"id":1057036,"isNew":false,"retailPrice":79,"isHot":false},{"brief":"仪征3D填充，充实的满足感","picUrl":"http://yanxuan.nosdn.127.net/3d437c8d68e2ec3f3dd61001bf98f16e.png","name":"300根全棉羽丝绒抱枕芯","counterPrice":59,"id":1055012,"isNew":false,"retailPrice":39,"isHot":false},{"brief":"亲肤舒适，宛如妈妈的怀抱","picUrl":"http://yanxuan.nosdn.127.net/23e0203f1512f33e605f61c28fa03d2d.png","name":"日式纯棉针织条纹抱枕","counterPrice":79,"id":1055016,"isNew":false,"retailPrice":59,"isHot":false},{"brief":"柔软蓬松，透气防螨。","picUrl":"http://yanxuan.nosdn.127.net/19ecd7c6f6f31219cf75117238d95139.png","name":"帆布丝羽绒多用坐垫","counterPrice":59,"id":1130037,"isNew":false,"retailPrice":39,"isHot":false},{"brief":"澳洲羊毛的细腻触感","picUrl":"http://yanxuan.nosdn.127.net/442b9d99c0e7f39efd7967e0e5987374.png","name":"皮毛一体多用长毛坐垫","counterPrice":129,"id":1130041,"isNew":false,"retailPrice":109,"isHot":false},{"brief":"盖毯、沙发垫、椅垫、地垫","picUrl":"http://yanxuan.nosdn.127.net/dc9d09334eb201fe9408ed604e549941.png","name":"皮毛一体多用单张长毛皮垫","counterPrice":259,"id":1130042,"isNew":false,"retailPrice":239,"isHot":false},{"brief":"活性炭记忆绵，缓解压力","picUrl":"http://yanxuan.nosdn.127.net/2a95b16f5b147cab4845641bee738a2e.png","name":"日式记忆绵坐垫","counterPrice":79,"id":1043005,"isNew":false,"retailPrice":59,"isHot":false}]
     * filterCategoryList : [{"picUrl":"http://yanxuan.nosdn.127.net/fb670ff3511182833e5b035275e4ac09.png","deleted":false,"keywords":"fff","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":9,"name":"饮食","pid":1005001,"updateTime":"2022-09-07 16:37:12","id":1005002,"iconUrl":"http://yanxuan.nosdn.127.net/c9280327a3fd2374c000f6bf52dff6eb.png","desc":"好吃，高颜值美食 "},{"picUrl":"http://yanxuan.nosdn.127.net/d2db0d1d0622c621a8aa5a7c06b0fc6d.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"锅具","pid":1005001,"updateTime":"2018-02-01 00:00:00","id":1005007,"iconUrl":"http://yanxuan.nosdn.127.net/4aab4598017b5749e3b63309d25e9f6b.png","desc":"一口好锅，炖煮生活一日三餐"},{"picUrl":"http://yanxuan.nosdn.127.net/c53d2dd5ba6b1cfb55bd42ea0783f051.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"毛巾","pid":1013001,"updateTime":"2018-02-01 00:00:00","id":1008001,"iconUrl":"http://yanxuan.nosdn.127.net/44ad9a739380aa6b7cf956fb2a06e7a7.png","desc":"日本皇室专供，内野制造商出品"},{"picUrl":"http://yanxuan.nosdn.127.net/2e2fb4f2856a021bbcd1b4c8400f2b06.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":6,"name":"布艺软装","pid":1005000,"updateTime":"2022-09-06 22:58:40","id":1008002,"iconUrl":"http://yanxuan.nosdn.127.net/8bbcd7de60a678846664af998f57e71c.png","desc":"各种风格软装装点你的家"},{"picUrl":"http://yanxuan.nosdn.127.net/833476fc3ecc30a7446279b787328775.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":7,"name":"户外","pid":1012000,"updateTime":"2018-02-01 00:00:00","id":1008005,"iconUrl":"http://yanxuan.nosdn.127.net/83d22ca3d1c8f94ee23ca96de489864c.png","desc":"MUJI、Nike等制造商出品"},{"picUrl":"http://yanxuan.nosdn.127.net/b43ef7cececebe6292d2f7f590522e05.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":2,"name":"被枕","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1008008,"iconUrl":"http://yanxuan.nosdn.127.net/927bc33f7ae2895dd6c11cf91f5e3228.png","desc":"守护你的睡眠时光"},{"picUrl":"http://yanxuan.nosdn.127.net/81f671bd36bce05d5f57827e5c88dd1b.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":4,"name":"床品件套","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1008009,"iconUrl":"http://yanxuan.nosdn.127.net/243e5bf327a87217ad1f54592f0176ec.png","desc":"MUJI等品牌制造商出品"},{"picUrl":"http://yanxuan.nosdn.127.net/66ea1d6ad602a8e441af7cada93bdc7a.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"糕点","pid":1005002,"updateTime":"2018-02-01 00:00:00","id":1008015,"iconUrl":"http://yanxuan.nosdn.127.net/93168242df456b5f7bf3c89653b3db76.png","desc":"四季糕点，用心烘焙"},{"picUrl":"http://yanxuan.nosdn.127.net/f702dc399d14d4e1509d5ed6e57acd19.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":8,"name":"灯具","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1008016,"iconUrl":"http://yanxuan.nosdn.127.net/c48e0d9dcfac01499a437774a915842b.png","desc":"一盏灯，温暖一个家"},{"picUrl":"http://yanxuan.nosdn.127.net/0a7fe0a08c195ca2cf55d12cd3c30f09.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"内裤","pid":1010000,"updateTime":"2018-02-01 00:00:00","id":1010002,"iconUrl":"http://yanxuan.nosdn.127.net/364269344ed69adafe1b70ab7998fc50.png","desc":"来自李维斯、爱慕等制造商"},{"picUrl":"http://yanxuan.nosdn.127.net/79275db76b5865e6167b0fbd141f2d7e.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":9,"name":"家饰","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1011004,"iconUrl":"http://yanxuan.nosdn.127.net/ab0df9445d985bf6719ac415313a8e88.png","desc":"装饰你的家"},{"picUrl":"http://yanxuan.nosdn.127.net/0645dcda6172118f9295630c2a6f234f.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"功能箱包","pid":1008000,"updateTime":"2018-02-01 00:00:00","id":1012001,"iconUrl":"http://yanxuan.nosdn.127.net/3050a2b3052d766c4b460d4b766353a3.png","desc":"范思哲、Coach等品牌制造商出品"},{"picUrl":"http://yanxuan.nosdn.127.net/e074795f61a83292d0f20eb7d124e2ac.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"文具","pid":1012000,"updateTime":"2018-02-01 00:00:00","id":1012003,"iconUrl":"http://yanxuan.nosdn.127.net/e1743239e41ca9af76875aedc73be7f0.png","desc":"找回书写的力量"},{"picUrl":"http://yanxuan.nosdn.127.net/5da102ea4c64081ce3a05a91c855fbc9.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":6,"name":"家居服","pid":1010000,"updateTime":"2018-02-01 00:00:00","id":1013006,"iconUrl":"http://yanxuan.nosdn.127.net/71f391af17fce739a6a57a1eeadbcbf0.png","desc":"舒适亲肤"},{"picUrl":"http://yanxuan.nosdn.127.net/d5d41841136182bf49c1f99f5c452dd6.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":7,"name":"家具","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1015000,"iconUrl":"http://yanxuan.nosdn.127.net/4f00675caefd0d4177892ad18bfc2df6.png","desc":"大师级工艺"},{"picUrl":"http://yanxuan.nosdn.127.net/dae4d6e89ab8a0cd3e8da026e4660137.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":10,"name":"宠物","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1017000,"iconUrl":"http://yanxuan.nosdn.127.net/a0352c57c60ce4f68370ecdab6a30857.png","desc":"抑菌除味，打造宠物舒适空间"},{"picUrl":"http://yanxuan.nosdn.127.net/2b8497fe583d3c9759128b2d76f89dfd.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":10,"name":"夏日甜心","pid":1019000,"updateTime":"2018-02-01 00:00:00","id":1018000,"iconUrl":"http://yanxuan.nosdn.127.net/b5e9f174404ef81b8603d6ecc304c62e.png","desc":"湖南卫视《夏日甜心》周边"},{"picUrl":"http://yanxuan.nosdn.127.net/004f5f96df4aeb0645abbd70c0637239.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"服饰","pid":1011000,"updateTime":"2018-02-01 00:00:00","id":1020003,"iconUrl":"http://yanxuan.nosdn.127.net/4e50f3c4e4d0a64cd0ad14cfc0b6bd17.png","desc":"萌宝穿搭，柔软舒适触感"},{"picUrl":"http://yanxuan.nosdn.127.net/476995896abea91d3f2e9ec20d56bd8d.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":3,"name":"寝居","pid":1011000,"updateTime":"2018-02-01 00:00:00","id":1020005,"iconUrl":"http://yanxuan.nosdn.127.net/0f3c5ad63139096fd0760219e12149af.png","desc":"无荧光剂，婴幼儿A类标准"},{"picUrl":"http://yanxuan.nosdn.127.net/57ce29ca06f592d65aabfa5f0f87ad43.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":8,"name":"配饰","pid":1008000,"updateTime":"2018-02-01 00:00:00","id":1020008,"iconUrl":"http://yanxuan.nosdn.127.net/d835a76e56a88905194f543b67089b4b.png","desc":"与众不同的点睛之笔"},{"picUrl":"http://yanxuan.nosdn.127.net/becfba90e8a5c95d403b8a6b9bb77825.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"魔兽世界","pid":1019000,"updateTime":"2018-02-01 00:00:00","id":1032000,"iconUrl":"http://yanxuan.nosdn.127.net/336f0186a9920eb0f93a3912f3662ffe.png","desc":"艾泽拉斯的冒险，才刚刚开始"},{"picUrl":"http://yanxuan.nosdn.127.net/bd17c985bacb9b9ab1ab6e9d66ee343c.png","deleted":false,"keywords":"","addTime":"2018-02-01 00:00:00","level":"L2","sortOrder":1,"name":"夏凉","pid":1005000,"updateTime":"2018-02-01 00:00:00","id":1036000,"iconUrl":"http://yanxuan.nosdn.127.net/13ff4decdf38fe1a5bde34f0e0cc635a.png","desc":"夏凉床品，舒适一夏"},{"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/fzzi6pfr55h41s0ux736.jpg","deleted":false,"keywords":"短保产品test","addTime":"2022-09-06 22:15:14","level":"L2","sortOrder":50,"name":"鲜花","pid":1036009,"updateTime":"2022-09-08 19:52:58","id":1036010,"iconUrl":"http://182.92.235.201:8083/wx/storage/fetch/496tooso1xq6koy9iy0f.jpg","desc":"鲜花点缀你的生活"},{"picUrl":"","deleted":false,"keywords":"123","addTime":"2022-09-08 12:44:38","level":"L2","sortOrder":50,"name":"123","pid":1005000,"updateTime":"2022-09-08 12:44:38","id":1036053,"iconUrl":"","desc":""}]
     */
    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<ListEntity> list = new ArrayList<>();
    private List<FilterCategoryListEntity> filterCategoryList;

    public void setListEntity(MarketGoods marketGoods){
        ListEntity listEntity = new ListEntity();
        BeanUtils.copyProperties(marketGoods,listEntity);
        list.add(listEntity);
    }

    @Data
    public class ListEntity {
        /**
         * brief : 1111111111
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/ds71de09pvvj5dsrj1o0.png
         * name : 小飞机
         * counterPrice : 99.0
         * id : 1181027
         * isNew : true
         * retailPrice : 11.0
         * isHot : false
         */
        private String brief;
        private String picUrl;
        private String name;
        private BigDecimal counterPrice;
        private Integer id;
        private Boolean isNew;
        private BigDecimal retailPrice;
        private Boolean isHot;

    }

    @Data
    public class FilterCategoryListEntity {
        /**
         * picUrl : http://yanxuan.nosdn.127.net/fb670ff3511182833e5b035275e4ac09.png
         * deleted : false
         * keywords : fff
         * addTime : 2018-02-01 00:00:00
         * level : L2
         * sortOrder : 9
         * name : 饮食
         * pid : 1005001
         * updateTime : 2022-09-07 16:37:12
         * id : 1005002
         * iconUrl : http://yanxuan.nosdn.127.net/c9280327a3fd2374c000f6bf52dff6eb.png
         * desc : 好吃，高颜值美食
         */
        private String picUrl;
        private Boolean deleted;
        private String keywords;
        private Date addTime;
        private String level;
        private Short sortOrder;
        private String name;
        private Integer pid;
        private Date updateTime;
        private Integer id;
        private String iconUrl;
        private String desc;

    }
}
